﻿@using hieunv.MVC3.App.Models;
@model System.Collections.Generic.List<Customer>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Index</title>
</head>
<body>
    <table>
		<tr>
			<th>Customer ID</th>
			<th>Company</th>
			<th></th>
			<th></th>
		</tr>
		@foreach (Customer customer in Model)
		{
			<tr>
				<td>@customer.CustomerID</td>
				<td>@customer.CompanyName</td>
				<td>@Html.ActionLink("Edit", "Edit/" + customer.CustomerID.TrimEnd())</td>
				<td>@Html.ActionLink("Delete", "Delete/" + customer.CustomerID.TrimEnd())</td>
			</tr>
		}
	</table>
</body>
</html>
